class StudentModel {
  String studentId;
  String studentName;
  int studentLevel;
  int studentExperience;

  StudentModel({
    required this.studentId,
    required this.studentName,
    required this.studentLevel,
    required this.studentExperience,
  });

  static Map<String, dynamic> toMap(StudentModel student) {
    Map<String, dynamic> map = {
      "studentId": student.studentId,
      "studentName": student.studentName,
      "studentLevel": student.studentLevel,
      "studentExperience": student.studentExperience,
    };
    return map;
  }

  static StudentModel fromJson(Map<String, dynamic> json) {
    return StudentModel(
      studentId: json["studentId"],
      studentName: json["studentName"],
      studentLevel: json["studentLevel"],
      studentExperience: json["studentExperience"],
    );
  }
}
